package unit2.part1;

public class BlockTest {
    {
        System.out.println("构造块");
    }

    static {
        System.out.println("静态代码块");
    }

    public BlockTest() {
        System.out.println("普通代码块-构造方法");
    }

    public void show() {
        System.out.println("普通代码块-普通方法");
    }

    public static void main(String[] args) {
        System.out.println("普通代码块-主方法");
        new BlockTest().show();
        System.out.println("----------------------------");
        new BlockTest().show();
    }
}
